package com.hyj.shop.project.index.controller;

import com.hyj.shop.project.utils.domain.AjaxResult;
import com.hyj.shop.project.utils.domain.Msg;
import com.hyj.shop.project.index.service.SwipperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/api/swipper")
public class SwipperController {
        @Autowired
       private SwipperService swipperService;
        @RequestMapping(value = "/findAll")
        @ResponseBody
        public Msg findAll() {
//System.out.println(request.getParameter("name"));

            return swipperService.findAll();


    }
    @RequestMapping(value = "/menus/queryAll")
    @ResponseBody
    public AjaxResult querySwipperMenus(){
            return swipperService.swipperMenusQueryAll();
    }
}
